package cn.iocoder.yudao.module.other.controller.admin;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Tag(name = "测试")
@RestController
@RequestMapping("/other/demo")
public class DemoController {

    @Resource
    private StringRedisTemplate stringRedisTemplate;

    @GetMapping("/test")
    public CommonResult<String> test() {

        return CommonResult.success("hello world");
    }

}
